{extend name='layout/base' /}
{block name='title'}导出农村家宴{/block}
{block name='contentHeader'}
<h1>
    农村家宴管理
    <small>导出农村家宴</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 农村家宴管理</a></li>
    <li class="active">导出农村家宴</li>
</ol>
{/block}
{block name='content'}
<script src="__PLUGIN__/layer/layer.js"></script>
<link rel="stylesheet" href="__PLUGIN__/layer/skin/default/layer.css">
<!-- Horizontal Form -->
<div class="box box-info" style="width:90%;margin: 0 auto;">
    <div class="box-header with-border">
        <h3 class="box-title">导出农村家宴</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form id="form" class="form-horizontal" action="" method="post">
        <div class="box-body">
            <div class="form-group">
                <label for="excelTable" class="col-sm-2 control-label">
                    导出农村家宴数据！
                </label>
            </div>
            <div class="form-group">
                <label for="begin_date" class="col-sm-2 control-label">开始日期</label>
                <div class="col-sm-10">
                    <input type="date" class="form-control" id="begin_date" name="begin_date" style="width:200px;">
                </div>
            </div>
            <div class="form-group">
                <label for="end_date" class="col-sm-2 control-label">结束日期</label>
                <div class="col-sm-10">
                    <input type="date" class="form-control" id="end_date" name="end_date" style="width:200px;">
                </div>
            </div>
            <div class="form-group">
                <label for="tel" class="col-sm-2 control-label">填报者电话</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="tel" name="tel" placeholder="填报者电话" style="width:200px;">
                </div>
            </div>
        </div>
        <!-- /.box-body -->
        <div class="box-footer">
            <input type="hidden" name="__token__" value="{$Request.token}" />
            <!--<a href="javascript:;" id="empty" class="btn btn-info pull-right">导出</a>-->
            <input type="submit"  value="导出" class="btn btn-info pull-right"/>
        </div>
        <!-- /.box-footer -->
    </form>
</div>
<script type="text/javascript">
    //jQuery代码
    $(function(){
        //给查看按钮绑定点击事件
        $('#empty').on('click',function(){
            layer.confirm('您确定要导出农村家宴数据？', {
                btn: ['确定','取消'] //按钮
            }, function(){
                $('form').submit();
            }, function(){
                layer.closeAll('dialog');
            });
        });
    });
</script>
{/block}